package class_work.chapter_1_4;

import java.util.Scanner;

/**
 * @author haomin
 * @date 2022/03/30 14:28
 **/
public class JudgePalindrome {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输⼈⼀个三位的整数：");
        int a = scanner.nextInt();

        int b = a /100;
        int c = a %10;
        if(b == c){
            System.out.println(a + "是回文数!");
        }else {
            System.out.println(a + "不是回文数！");
        }
    }
}